import { createApp } from 'vue'
import "@/mock/index"
import "./assets/style/index.scss"
import router from './router'
import { createPinia } from "pinia"
//必须写这个帮我们自动更新注册svg图标
import 'virtual:svg-icons-register';
import App from './App.vue'
import SvgIcon from './components/Svg/index.vue'
// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(createPinia()).use(router).component("SvgIcon",SvgIcon).mount('#app')

